// created by noellynch
// May 8, 2009

package com.sceneworker.editors.materialeditor;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

import com.jme.scene.TriMesh;
import com.myjavautils.swing.MigLayoutUtils;
import com.myjavautils.swing.SwingComponentFactory;

public class MaterialEditorPanel extends JPanel {

	private		TriMesh			mcl_mesh;
	private		JDialog			mcl_parDlg;
	
	public	MaterialEditorPanel(TriMesh cl_mesh, JDialog cl_parDlg) {
		mcl_mesh = cl_mesh;
		mcl_parDlg = cl_parDlg;
		
		MigLayoutUtils.asMigLayout(this);
		
		JPanel		lcl_matEditor = new JPanel();
		JLabel		lcl_label = SwingComponentFactory.makeALabel("Add you ui content here");
		lcl_matEditor.add(lcl_label, "wrap");
		add(lcl_matEditor);
		
		JButton		lcl_done = SwingComponentFactory.makeAButton("Done");
		lcl_done.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				mcl_parDlg.setVisible(false);
			}
		});
		
		MigLayoutUtils.makeRightAlignedButtonBar(this, lcl_done);
	}
}
